// //导入axios npm install axios 
// import axios from 'axios';
// const baseURL = 'http://localhost:8080';
// const instance = axios.create({baseURL})
import request from '@/util/request.js'
//获取所有文章数据的函数
export  function articleGetAllService(){
    //发送请求，获取所有文章数据
    //同步等待服务器相应的结果并返回 async await
    return  request.get('/article/getAll');

}
//根据文章分类和发布状态搜索的函数
export  function articleSearchService(conditions){
    return  request.get('/article/search',{params: conditions});
}